﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam4.DAO;
using MockPrjTeam4.Entity;

namespace MockPrjTeam4.Biz
{
    public class ProgrammeBiz
    {
        public static bool SetProActive(int proId)
        {
            return ProgrammeDAO.SetProActive(proId);
        }

        public static Programmes GetProgrammeById(int id)
        {
            return ProgrammeDAO.GetProgrammeById(id);
        }

        public static IList<Programmes> GetListProgrammeName()
        {
            return ProgrammeDAO.GetListProgrammeName();
        }

        public static bool AddProgramme(Programmes programme)
        {
            return ProgrammeDAO.AddProgramme(programme);
        }

        public static bool EditProgramme(Programmes pro)
        {
            return ProgrammeDAO.EditProgramme(pro);
        }

        public static IList<Programmes> GetListProgramme()
        {
            return ProgrammeDAO.GetListProgramme();
        }

        public static IList<Programmes> GetListActiveProgrammes()
        {
            return ProgrammeDAO.GetListActiveProgrammes();
        }

        public static IList<Programmes> Search(string range, string isActive)
        {
            return ProgrammeDAO.Search(range, isActive);
        }

        public static IList<Programmes> SearchPro(string proName, bool inActive)
        {
            return ProgrammeDAO.SearchPro(proName, inActive);
        }

        public static IList<Programmes> SearchPro(string proName, string isActive)
        {
            return ProgrammeDAO.SearchPro(proName, isActive);
        }
    }
}